package com.example.alldemo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class show {

    private Date beforeTime = null;
    private Date afterTime=null;
    private String status = null;
    private Integer page;
    private Integer limit;

    public show() {
    }

    public show(Date beforeTime, Date afterTime, String status, Integer page, Integer limit) {
        this.beforeTime = beforeTime;
        this.afterTime = afterTime;
        this.status = status;
        this.page = page;
        this.limit = limit;
    }
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Date getBeforeTime() {
        return beforeTime;
    }


    public void setBeforeTime(Date beforeTime) {
        this.beforeTime = beforeTime;
    }
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Date getAfterTime() {
        return afterTime;
    }

    public void setAfterTime(Date afterTime) {
        this.afterTime = afterTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    @Override
    public String toString() {
        return "show{" +
                "beforeTime=" + beforeTime +
                ", afterTime=" + afterTime +
                ", status='" + status + '\'' +
                ", page=" + page +
                ", limit=" + limit +
                '}';
    }
}
